import instance from "@/utils/HttpUtils.js";
import qs from "qs";

export default{
  deleteCategory(data) {
    return instance.delete("/categorys/deleteCategory/"+data);
  },
  addCategory(data) {
    return instance.post("/categorys/saveCategory", data);
  },
  updateCategory(data) {
    return instance.put("/categorys/updateCategory", data);
  },
  getCategoryList(data) {
    return instance.get("/categorys/findCategoryByPage?"+qs.stringify(data));
  },


}